package com.waves.spring.boot.autoConfiguration;


import java.lang.ref.SoftReference;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.List;

public class Bean1 {

    public static void main(String[] args) {
        for (int i = 0; i < 10000; i++) {
            Bean1 bean1 = new Bean1();
            int[] array = {1, 2, 3};
            Object strongReference = new Object();
            WeakReference<Object> weakReference = new WeakReference<>(strongReference);
        }

        List<Object> list = new ArrayList<>();


    }

    public int Method01(){
        int m=10;
        int n=20;
        int k=m+n;
        Method01();
        // 查询a表
        //

        // 查询a表
        return k;
    }

    public void Method02(){
        int i = Method01();
        int j = 10;
        try {
            int k = 11;
        } catch (Exception e) {
            j=11;
            e.printStackTrace();
        }
    }


}
